﻿using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace ApiTemplateGenerate
{

    public class FileInfo
    {
        /// <summary>
        /// 目录路径
        /// </summary>
        public string DirectoryPath { get; set; }
        /// <summary>
        /// 文件夹名称
        /// </summary>
        public string FolderName { get; set; }
    }
    public static class ApiToTsExtension
    {
        public static IApplicationBuilder UseApiToTs(this IApplicationBuilder app, FileInfo fileInfo)
        {
            return app.UseMiddleware<ApiToTsMiddleware>(fileInfo);
        }
    }
}
